package cn.com.simple.learning.designpattern.behavior.command;

/**
 * @author Jianxing.Jia
 * @date 2022/2/9
 * @description 描述信息
 */
public class RemoteControl {

    private Command command;

    public RemoteControl(Command command) {
        this.command = command;
    }

    public RemoteControl() {
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public void press() {
        this.command.execute();
    }

}
